<?php
/**
* FILE_NAME : fourth_setp.php   FILE_PATH : D:\xampp\htdocs\id5\web_root\fourth_setp.php
* 如果是已注册用户可以直接登陆
*
* @copyright Copyright www.phpunion.com
* @author slash upsetcn@gmail.com
* @package
* @subpackage
* @version Mon Nov 28 11:26:53 CST 2011
*/ 
include_once("ThePage.class.php");
$page = new ThePage();

//获得生成的临时ID
$temp_id = $page->userRequest->get("temp_id");
if(empty($temp_id))
{
	user_log(0,"-3013","error",$_SERVER['SCRIPT_NAME']);
	$temp = $page->userRequest->user_get_cookie('err_url');
	$err_url = empty($temp) ? "404" :urldecode($temp);
	jumpPage($err_url,'',3);
	exit();
}
//取得相关信息
$user_arr = @unserialize($page->mc->get(SFT.$temp_id));
if(empty($user_arr))
{
	//mc存储失效
	user_log(0,"-3009","error",$_SERVER['SCRIPT_NAME']);
	goToIndex(-3009);
	exit();
}
//将信息释放给页面
$page->set_sub_info($user_arr['icpcode']);
user_log($temp_id,"suc 4","suc",$_SERVER['SCRIPT_NAME']);
$page->smarty->assign('coop_name',$user_arr['name']);
$page->smarty->display('fourth_step.tpl');